package com.gitee.starblues.example.basic1.service;

import com.gitee.starblues.core.PluginExtensionInfo;
import com.gitee.starblues.example.basic1.config.BasicConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @author starBlues
 * @version 1.0
 * @since 2021-08-01
 */
@Component
public class Basic1PluginExtensionInfo implements PluginExtensionInfo {

    @Autowired
    private BasicConfig basicConfig;

    @Override
    public Map<String, Object> extensionInfo() {
        Map<String, Object> map = new HashMap<>();
        map.put("plugin1", "plugin1ExtensionInfo");
        map.put("plugin-config", basicConfig.toString());
        return map;
    }
}
